package com.softer.wxzj.common.error;

import lombok.Data;

import java.io.Serializable;

/**
 * 通用异常返回格式
 *
 * @author Gong Zhiyang
 * @date 2019/4/16
 */
@Data
public class CourseException extends RuntimeException implements Serializable {
    private static final long serialVersionUID = 42L;
    private int data;
    private String message;

    public CourseException(int data, String message) {
        this.data = data;
        this.message = message;
    }
}
